package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家教教师评分对象 sys_teacher_score
 * 
 * @author ruoyi
 * @date 2025-04-21
 */
@Data
public class SysTeacherScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评分编号 */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 教师编号 */
    @Excel(name = "教师编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long teacherId;

    /** 评价用户编号 */
    @Excel(name = "评价用户编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 教师评分 */
    @Excel(name = "教师评分")
    private BigDecimal teacherScore;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTeacherScore(BigDecimal teacherScore) 
    {
        this.teacherScore = teacherScore;
    }

    public BigDecimal getTeacherScore() 
    {
        return teacherScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherId", getTeacherId())
            .append("userId", getUserId())
            .append("teacherScore", getTeacherScore())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
